package com.itheima.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/*@Controller
@ResponseBody*/

/**
 * Controller
 * @author Johnny.Chen
 *
 */
@RestController
public class HelloController {
	
	@Value("${person.name}")
	private String n;
	
	@Value("${person.age}")
	private int a;
	
	//@RequestMapping(value="/sayHello",method=RequestMethod.GET)
	@GetMapping("/sayhello")
	public String sayHello() {
		return n+" 真的好骚啊！===>"+a;
	}

}
